package com.tester.yaa.exam002.computeThread;

/**
 * @Aduthor yinanan
 * @ClassName Coumputer
 * @Date 2022/12/11 19:59
 * @Description 定义电脑信息类
 **/
public class Coumputer {

    //初始化电脑台数 0
    private static int count = 0;

    //每次调用电脑数都 + 1
    public Coumputer(){
        count ++;
    }
    public String toString(){
        return "[第"+ count + "台电脑]";
    }
}
